let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n124,
                    i =
                    (this && this.__extends) ||
                    ((_n124 = function n(t, e) {
                            return (_n124 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n124(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.MilitaryInfo = o.MilitaryState = void 0);
                var r,
                    a = t('AbsInfo');
                (function(t) {
                    (t[(t.Close = 0)] = 'Close'),
                    (t[(t.Open = 1)] = 'Open'),
                    (t[(t.Unlock = 2)] = 'Unlock');
                })((r = o.MilitaryState || (o.MilitaryState = {})));
                var s = (function(t) {
                    function e(e) {
                        var o = t.call(this) || this;
                        return (o.root = o), (o._state = r.Close), o.init(e), o;
                    }
                    return (
                        i(e, t),
                        (e.prototype.checkRedDotState = function(t) {
                            var e = !1;
                            return (
                                this.isHave && this.isOpen && t >= this.money && (e = !0),
                                this._redDotState != e &&
                                ((this._redDotState = e),
                                    this.emit(a.InfoEvent.RedDotStateChanged)),
                                this._redDotState
                            );
                        }),
                        Object.defineProperty(e.prototype, 'redDotState', {
                            get: function get() {
                                return this._redDotState;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'isHave', {
                            get: function get() {
                                return this._isHave;
                            },
                            set: function set(t) {
                                this._isHave != t &&
                                    ((this._isHave = t), this.emit(a.InfoEvent.StateChanged));
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'state', {
                            get: function get() {
                                return this._state;
                            },
                            set: function set(t) {
                                this._state = t;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (e.prototype.open = function() {
                            this._state == r.Close &&
                                ((this._state = r.Open), this.emit(a.InfoEvent.StateChanged));
                        }),
                        (e.prototype.unlock = function() {
                            this.isOpen &&
                                this._state != r.Unlock &&
                                ((this._state = r.Unlock),
                                    this.emit(a.InfoEvent.StateChanged),
                                    this.child && this.child.open());
                        }),
                        Object.defineProperty(e.prototype, 'isOpen', {
                            get: function get() {
                                return this._state == r.Open;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'isUnlock', {
                            get: function get() {
                                return this._state == r.Unlock;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'parent', {
                            get: function get() {
                                return this._parent;
                            },
                            set: function set(t) {
                                (this._parent = t),
                                t &&
                                    ((t.child = this),
                                        (this.root = t.root),
                                        t.isUnlock && this.open());
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (e.prototype.onParentUnlockHandler = function() {
                            this.parent && (this.parent.targetOff(this), this.open());
                        }),
                        Object.defineProperty(e.prototype, 'child', {
                            get: function get() {
                                return this._child;
                            },
                            set: function set(t) {
                                this._child = t;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'id', {
                            get: function get() {
                                return this.getCfgData('id');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'type', {
                            get: function get() {
                                return this.getCfgData('type');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'level', {
                            get: function get() {
                                return this.getCfgData('level');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'title', {
                            get: function get() {
                                return this.getCfgData('title');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'icon', {
                            get: function get() {
                                return this.getCfgData('icon');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'money', {
                            get: function get() {
                                return this.getCfgData('money');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'hp', {
                            get: function get() {
                                return this.getCfgData('hp');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'atk', {
                            get: function get() {
                                return this.getCfgData('atk');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'def', {
                            get: function get() {
                                return this.getCfgData('def');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'crit', {
                            get: function get() {
                                return this.getCfgData('crit');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'solid', {
                            get: function get() {
                                return this.getCfgData('solid');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'hpPer', {
                            get: function get() {
                                return this.getCfgData('hpPer');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'atkPer', {
                            get: function get() {
                                return this.getCfgData('atkPer');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'defPer', {
                            get: function get() {
                                return this.getCfgData('defPer');
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        e
                    );
                })(a.default);
                (o.MilitaryInfo = s), console.log("end");
            module.exports =  e.exports;